package dropbox.common;

/**
 * interface with options on files or dirs
 * client implements this interface and 
 * override functions with the behavior 
 * they should act on client side
 * 
 * @author Yoav
 *
 */
public interface FileAction {

	/**
	 * delete a file
	 * @param filePath file path
	 */
	public void deleteFile(String filePath);
	
	/**
	 * create a file
	 * @param checkSum file's checkSum
	 * @param filePath file's path
	 */
	public void createFile(String checkSum,String filePath);
	
	/**
	 * create a dir
	 * @param dirPath dir path
	 */
	public void createDir(String dirPath);
	
	/**
	 * rename a file/dir
	 * @param oldPath old path of file/dir
	 * @param newPath new path of file/dir
	 */
	public void rename(String oldPath,String newPath);
	
	
}
